package com.dao;

import com.dto.BookStockDTO;
import com.po.BookStockPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author linyukun
 * @date 2022/7/14 14:39
 */
@Mapper
@Repository
public interface BookStockDao {
    Long insertBookStock(@Param("dto")BookStockDTO dto);

    Long updateBookStock(@Param("dto")BookStockDTO dto);

    List<BookStockPO> getBookStockListByBookId(@Param("dto")BookStockDTO dto);

    Long delBookStockById(@Param("dto")BookStockDTO dto);

    BookStockPO getBookStockByticketNumber(@Param("dto")BookStockDTO dto);


}
